<template>
  <div id="app">
    <div class="header">
      <Header/>
    </div>
    <div class="main">
      <router-view/>
    </div>

    <ZooForm/>
  </div>
</template>
<script>
export default {
  name: "App",
  mounted: function () {
    let userInfo = localStorage.getItem("userInfo");
    if (userInfo) {
      this.$store.dispatch("identifyUser");
    }
  },
  components: {
    ZooForm: () => import("./components/Form.vue"),
    Header: () => import("./components/Header.vue"),
  },
};
</script>
<style lang="less">
* {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.marginLine {
  margin-top: 10px;
}

.cursor {
  cursor: pointer;
}

.text-center {
  text-align: center;
}

.hover_orange {
  &:hover {
    color: #ff5d23;
  }
}

a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
}

.el-popover {

  .logout {
    margin-top: 20px;
    padding: 10px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    .icon-tuichu {
      font-size: 14px;
      margin-right: 16px;
      vertical-align: center;
    }

    &:hover {
      color: #ff5d23;
      background-color: #e3e5e7;
    }
  }

  .username-Text {
    text-align: center;
    font-weight: 500;
  }

}

.router-link-exact-active {
  color: #ff5d23 !important;
}

.main {
  padding-top: 60px;
}
</style>
